import { Link, useRoutes } from 'react-router-dom'
import routersConfig from './routes/index.tsx'
import Style from './App.module.scss'

function App() {
  return (
    <>
      <div className={Style.routeBox} style={{ paddingBottom: '40px' }}>
        <Link to={'/store'}> redux练习</Link>
        <Link to={'/drag'}> 拖拽</Link>
        <Link to={'/event'}> React17事件机制</Link>
        <Link to={'/eventProxy'}> React17事件代理</Link>
        <Link to={'/hooks'}> useState测试</Link>
      </div>
      {useRoutes(routersConfig)}
    </>
  )
}

export default App
